Skip to content

Conversation

@enoch3712
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2025 15:34
@enoch3712 enoch3712 merged commit cce849c into main Jun 9, 2025
0 of 6 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the static easyocr dependency from the pyproject.toml file and updates the easyocr loader to perform a runtime check for the package. Key changes include:

  • Removal of the easyocr dependency from pyproject.toml.
  • Removal of global imports for easyocr and json in document_loader_easy_ocr.py.
  • Insertion of a try/except block to dynamically load easyocr and raise an informative error if it's not installed.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Removed the static dependency on easyocr to shift management to runtime checks.
extract_thinker/document_loader/document_loader_easy_ocr.py Replaced global import with a try/except block to provide user guidance if easyocr is missing.
Comments suppressed due to low confidence (1)

extract_thinker/document_loader/document_loader_easy_ocr.py:44

  • The error message instructs users to 'pip install easyocr', but if the project is managed with Poetry, consider suggesting 'poetry add easyocr' to align with dependency management practices.
raise ImportError(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants